package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 茶叶商品对象 goods
 * 
 * @author ruoyi
 * @date 2024-02-20
 */
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 茶叶名称 */
    @Excel(name = "茶叶名称")
    private String goodsName;

    /** 茶叶价格 */
    @Excel(name = "茶叶价格")
    private BigDecimal goodsPrice;

    /** 销量 */
    @Excel(name = "销量")
    private Long salesVolume;

    @Excel(name = "主图")
    private String url;


    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /*商品主图附件*/
    private AttachFile attachFiles;

    /*商品详情图附件列表*/
    private List<AttachFile> detailsfileList;

    /*删除的附件id*/
    private Long[] delAttachFilesIds;

    public void setDelAttachFilesIds(Long[] delAttachFilesIds){this.delAttachFilesIds = delAttachFilesIds;}

    public Long[] getDelAttachFilesIds(){return delAttachFilesIds;}

    public void setAttachFiles(AttachFile attachFiles){this.attachFiles = attachFiles;}

    public AttachFile getAttachFiles(){return attachFiles;}

    public List<AttachFile> getDetailsfileList(){return detailsfileList;}

    public void setDetailsfileList(List<AttachFile> detailsfileList){this.detailsfileList = detailsfileList;}

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setGoodsPrice(BigDecimal goodsPrice) 
    {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() 
    {
        return goodsPrice;
    }
    public void setSalesVolume(Long salesVolume) 
    {
        this.salesVolume = salesVolume;
    }

    public Long getSalesVolume() 
    {
        return salesVolume;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsName", getGoodsName())
            .append("goodsPrice", getGoodsPrice())
            .append("salesVolume", getSalesVolume())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
